<h1><?= $study->name ?></h1>
<p><?= $study->summary ?></p>

<?php 
	echo $this->lang->line('studies:mandatory')."<br />";
	for($i=1;$i<=8;$i++){
		echo $this->lang->line('studies:semester')." ".$i."<br />";
		foreach($courses as $course)
			if($course->semester() == $i && $course->type() == 0)
				echo $course->printLink()."<br />";
	};
?>
<br />
<?php 
	echo $this->lang->line('studies:elective')."<br />";
	for($i=1;$i<=8;$i++){
		echo $this->lang->line('studies:semester')." ".$i."<br />";
		foreach($courses as $course)
			if($course->semester() == $i && $course->type() == 1)
				echo $course->printLink()."<br />";
	};
?>
<?php 
	if($study->transfered == 0 && $study->type == 0){
?>
	<br />
	<h3><?= $this->lang->line('studies:possible_profiles') ?></h3>
<?php
		foreach($profiles as $profile)
				echo "<a href='".site_url('studies/profile/'.$profile->idPrfFk)."' >".$profile->name."</a>";
	}
?>